package com.project.webservice.feign;

import com.project.dto.R;
import com.project.webservice.entity.JgGjxl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "webServiceClient", value = "webservice")
public interface WebSeviceClient {

    @GetMapping("/searchById/{jgxlid}")
    public R searchById(@PathVariable(value = "jgxlid") Integer jgxlid);

    /**
     *
     * @param JgGjxl
     * @return
     */
    @GetMapping("/searchByList")
    public R searchByList(@RequestParam JgGjxl JgGjxl);
}
